package com.jdone.compus.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import java.time.LocalDateTime;

@Data
@ApiModel("吹风使用记录查询参数")
public class BlowUsageRecordQuery {

    @ApiModelProperty("使用设备的所属IMEI ")
    private String imei;

    @ApiModelProperty("使用设备的所属生产厂家")
    private String manufacturer;

    @ApiModelProperty(value = "业务订单号（模糊匹配）")
    private String businessOrderNo;

    @ApiModelProperty(value = "使用人姓名")
    private String username;

    @ApiModelProperty(value = "用户账号（模糊匹配）")
    private String userAccount;

    @ApiModelProperty(value = "用户电话，模糊匹配")
    private String userPhone;

    @ApiModelProperty(value = "借用开始时间（>=）", example = "2025-07-01T00:00:00")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime borrowTimeStart;

    @ApiModelProperty(value = "借用结束时间（<=）", example = "2025-07-31T23:59:59")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime borrowTimeEnd;

}

